﻿using EM.OA.DataModel.DBModel;
using EM.OA.WebCommon.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Web;
namespace EM.OA.Portal.Models
{
    public class MailConfigModels : BaseViewModel
    {
        /// <summary>
        /// ID
        /// </summary>		
        [Display(Name = "ID")]
        public Guid? MailConfigID { get; set; }
        /// <summary>
        /// 邮箱地址
        /// </summary>		
        [Display(Name = "邮箱地址")]
        public string MailAddress { get; set; }
        /// <summary>
        /// 邮箱密码
        /// </summary>		
        [Display(Name = "邮箱密码")]
        public string MailPassword { get; set; }
        /// <summary>
        /// 发信昵称
        /// </summary>		
        [Display(Name = "发信昵称")]
        public string Nickname { get; set; }
        /// <summary>
        /// 是否自动收取
        /// </summary>		
        [Display(Name = "自动收取")]
        public bool IsAutoReceiver { get; set; }
        /// <summary>
        /// 是否同步保存邮件
        /// </summary>		
        [Display(Name = "同步保存邮件")]
        public bool IsSyncSave { get; set; }
        /// <summary>
        /// 是否同步删除邮件
        /// </summary>		
        [Display(Name = "同步删除邮件")]
        public bool IsSyncDelete { get; set; }
        /// <summary>
        /// 发信后自动保存邮件
        /// </summary>		
        [Display(Name = "发信后自动保存邮件")]
        public bool IsAutoSave { get; set; }
        /// <summary>
        /// 发信后自动保存联系人
        /// </summary>		
        [Display(Name = "发信后自动保存联系人")]
        public bool IsAutoSaveLinkman { get; set; }
        /// <summary>
        /// 是否显示个性签名
        /// </summary>		
        [Display(Name = "显示个性签名")]
        public bool IsShowSignature { get; set; }
        /// <summary>
        /// 个性签名
        /// </summary>		
        [Display(Name = "个性签名")]
        public string Signature { get; set; }
        /// <summary>
        /// 接收服务器地址
        /// </summary>		
        [Display(Name = "接收服务器地址")]
        public string POP3IP { get; set; }
        /// <summary>
        /// 接收端口
        /// </summary>		
        [Display(Name = "端口")]
        public int? POP3Port { get; set; }
        /// <summary>
        /// 接收是否要求安全连接
        /// </summary>		
        [Display(Name = "安全连接")]
        public bool IsPOP3SSL { get; set; }
        /// <summary>
        /// 发送服务器地址
        /// </summary>		
        [Display(Name = "发送服务器地址")]
        public string SMTPIP { get; set; }
        /// <summary>
        /// 发送端口
        /// </summary>		
        [Display(Name = "端口")]
        public int? SMTPPort { get; set; }
        /// <summary>
        /// 发送是否要求安全连接
        /// </summary>		
        [Display(Name = "安全连接")]
        public bool IsSMTPSSL { get; set; }
        /// <summary>
        /// 是否默认
        /// </summary>		
        [Display(Name = "是否默认")]
        public bool IsDefault { get; set; }
        /// <summary>
        /// 所属人
        /// </summary>		
        [Display(Name = "所属人")]
        public Guid? OwnerUserID { get; set; }

    }
}